package com.sun.common.core.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 总记录数
     */
    @ApiModelProperty(value = "总记录数", required = true)
    private Long total;

    /**
     * 当前页的记录数
     */
    @ApiModelProperty(value = "当前页的记录数", required = true)
    private Long pageSize;

    /**
     * 当前页号
     */
    @ApiModelProperty(value = "当前页号", required = true)
    private Long current;
}
